<template>
  <div></div>
</template>
<script>
  export default {
    async asyncData({ params, redirect, app }) {
      const locale = app.i18n.locale
      let res = await app.$axios.get(`/api/goods_category/read`, {
        params: {
          id: params.id,
          field: 'code'
        }
      })
      return redirect(301, `/${locale == 'en' ? '' : locale + '/'}game-category/${res.code}`)
    }
  }
</script>
<style lang="less" scoped></style>
